import axios from 'axios'
const http = axios.create({
    baseURL : "",
    timeout : 20000
})

http.interceptors.request.use(config=>{
    if(localStorage.getItem('token')){
        config.headers.token = localStorage.getItem('token')
    }
    return config
})

http.interceptors.response.use(res=>{
    return res
})

export default http